package com.qiu.wbpostman.entity;

import java.util.Date;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserToken {
	@PrimaryKey
	private Long id; // 用户微博id

	@Persistent
	private String token; // 
	@Persistent
	private String tokenSecret; // 
	@Persistent
	private Date createDate; // 创建日期

	public UserToken() {

	}

	public UserToken(Long id, String token, String tokenSecret, Date createDate) {
		super();
		this.id = id;
		this.token = token;
		this.tokenSecret = tokenSecret;
		this.createDate = createDate;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getTokenSecret() {
		return tokenSecret;
	}

	public void setTokenSecret(String tokenSecret) {
		this.tokenSecret = tokenSecret;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
}
